define(function(require, exports, module) {
    "require:nomunge,exports:nomunge,module:nomunge";

    var app = require('mokit/app');
    var grid = require('mokit/grid');
    var commonUtils = require('../common/utils');
    var input = require('../common/input.js');

    /**
     * 登陆页视图
     */
    return app.view.create({
        template: module.resovleUri('../templates/reg.html'),

        el: {
            accountBox: '.ui-textbox-account',
            passwordBox: '.ui-textbox-password',
            emailBox: '.ui-textbox-email'
        },

        /**
         * 在呈现时
         */
        onRender: function(context) {
            var self = this;
            grid.use(self.ui);
        },

        getInfo: function(context) {
            var self = this;
            return {
                account: self.el.accountBox.val(),
                password: self.el.passwordBox.val(),
                email: self.el.emailBox.val()
            };
        },

        utils: commonUtils

    });

});